<?php  if(isset($list)){
		$this->pagination->initialize(array(
			'base_url' 			=> Sys::$url_base.$this->uri->uri_string().'/',
			'total_rows'		=> $list['total_rows'],
			'per_page'			=> $list['items_per_page'],
			'cur_page'			=> $list['result_page']*$list['items_per_page'],
			'page_query_string'	=> TRUE,
			'num_links'			=> 1,
			'anchor_class'		=> 'pags corner-all'
		));
		
		$pagination = $this->pagination->create_links();
		// echo '<div class="pagination w100">'.$pagination.'</div>';
		
		?>
		<table cellpadding="0" cellspacing="0">
			<thead>
				<tr>
					<td>T&iacute;tulo</td>
					<td>Opciones</td>
				</tr>
			</thead>
			<tbody>
				<?php	 
					foreach ($list['publications'] as $itm) {?>
						<tr>
							<td class="td_title"><?php echo $itm['title'].' ('.$itm['year'].')'.' | Publicado: '.$itm['date']; ?></td>  	                         
							<td>
								<a href="<?php echo base_url($lang_url).(empty($lang_url) ? '' : '/');?>panel/films/edit/<?php echo $itm['id']; ?>" class="button left up dblock" title="Editar">&nbsp;</a>
								<a href="<?php echo base_url($lang_url).(empty($lang_url) ? '' : '/');?>panel/films/del/<?php echo $itm['id']; ?>" class="button right down dblock" title="Eliminar" 
									onclick="if(confirm('&iquest;Est&aacute; seguro de eliminar la Pelicula?') == false){ return false; }">&nbsp;</a>              
							</td>                
						</tr>	
				<?php }?>
			</tbody>
		</table>
		<?php echo '<div class="pagination w100">'.$pagination.'</div>';}?>